#ifndef wxydrawing_h_
#define wxydrawing_h_
#include <pfcGlobal.h>

class DimensionStruct
{
private:
    pfcDimension2D_ptr dimension;
    pfcPoint3D_ptr location;
    pfcPoint3D_ptr symloc;
    double angle;
    double distance;
    pfcPoint3D_ptr viewcenter;
    xstring viewname;
    pfcView2D_ptr view2d;

public:
    int Create(pfcDimension2D_ptr dim);
    pfcDimension2D_ptr GetDimension();
    pfcPoint3D_ptr GetViewCenter();
    pfcPoint3D_ptr GetSymLoc();
    xstring GetViewName();
    double GetAngle();
    double GetDistance();
};
typedef enum _direction
{
    Vertical = 1,
    Horizon = 0,
    Direction_nil = -1
} Alignment;
//创建球标实例
pfcDetailSymbolInstInstructions_ptr CreateSymbolInstInstruction(pfcModel_ptr mdl);
//修改尺寸位置 纠正SetLocation函数设置尺寸位置时产生偏移
void ChangeDimensionLocation(pfcDimension2D_ptr dimension, pfcPoint3D_ptr dimloc);
#endif